<?php
// +----------------------------------------------------------------------
// | 登录验证
// +----------------------------------------------------------------------
namespace app\common\validate;
use think\Validate;

class Order extends Validate
{

    //定义验证规则
    protected $rule =   [
        'user_guid' => 'require',
        'address_id' => 'require',
        'goods_money' => 'require',
        'discount_money' => 'require',
        'delivery_fee' => 'require',
        'order_money' => 'require'
    ];
    
    protected $message  =   [
        'user_guid.require' => '用户guid必填',
        'address_id.require'  => '地址必填',
        'goods_money.require'  => '商品金额必填',
        'discount_money.require'  => '优惠金额必填',
        'delivery_fee.require'  => '配送费必填',
        'order_money.require'  => '订单金额必填'
    ];

}
